package cn.signalpha.modules.shop.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.DecimalMax;
import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 数据传输对象实体类
 *
 * @author signalpha
 */
@Data
@ApiModel(value = "PlaceLevelDTO对象", description = "分销员等级")
public class PlaceLevelDTO implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    private Long id;

    @ApiModelProperty(value = "商户id", hidden = true)
    private Long sellerId;
	@NotNull
    @ApiModelProperty(value = "等级")
    private Integer level;
	@NotBlank
    @ApiModelProperty(value = "名称")
    private String name;
	@NotNull
	@DecimalMin(value = "0.01", message = "比例不能低于0.01")
	@DecimalMax(value = "100", message = "比例不能超过100")
    @ApiModelProperty(value = "直推比例")
    private Double direct;
	@NotNull
	@DecimalMin(value = "0.01", message = "比例不能低于0.01")
	@DecimalMax(value = "100", message = "比例不能超过100")
    @ApiModelProperty(value = "间接比例")
    private Double indirect;

}
